]> dgit.raspbian.org Git - gnome-shell.git/commit
shell: Check we are in a systemd environment before starting systemd units
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 6 May 2020 08:57:54 +0000 (10:57 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 7 May 2020 10:16:11 +0000 (12:16 +0200)
commit2d563959217003fe653fce144ab1cdc9004cbb6b
tree6c762896b7e36c3b7fc5b9f40a763cd550884d60
parent0ecddafc2072e7bd9a0b03f11e71ddd5abd8e526
shell: Check we are in a systemd environment before starting systemd units

Avoid starting/stopping the gsd-xsettings systemd unit if the shell itself
was not started via systemd. In the lack of a user session manager, we
have no means to neatly start/stop services, so should rely on the good
ol' gnome-session to do this for us.

This changes the return value meaning slightly, TRUE means "service did
start", FALSE otherwise. The error is only raised if we ought to start,
but it produced an error somehow.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1238
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2755
src/shell-util.c